<template>
    <div>
        <mt-swipe :auto="2000">
            <mt-swipe-item v-for="item in img" :key="item.id">
                <a :href="item.url"><img :src="item.img || item.src" alt="" :class="{width: isfull}"></a>
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
    export default {
        name: "swipe",
        props:["img","isfull"],
        data(){
            return {

            }
        }
    }
</script>

<style scoped lang="less">
    .mint-swipe{
        height: 200px;
    }
    .mint-swipe-item{
        text-align: center;
    }
    img{
        height: 100%;

    }
    .width{
        width: 100%;

    }
</style>